﻿<%@ WebHandler Language="C#" Class="deleteFB" %>

using System;
using System.Web;

public class deleteFB : IHttpHandler {
    
    public void ProcessRequest (HttpContext context) {
        if (!string.IsNullOrEmpty(context.Request.QueryString["id"].ToString()))
        {
            int id = Convert.ToInt32(context.Request.QueryString["id"]);
            BLL.FeedBack bllFB = new BLL.FeedBack();
            if (bllFB.softDelByLId(id))
            {
                context.Response.Redirect("managerFeedBack.aspx");
            }
            else
            {
                context.Response.Write("no");
            }
        }
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}